package doubleLinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: tao
 * Date: 2024-01-01
 * Time: 13:03
 */
public class test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(2);
        myLinkedList.addLast(2);
        myLinkedList.addLast(2);
        myLinkedList.addLast(2);
        myLinkedList.display();
        System.out.println("长度:" + myLinkedList.size());
        System.out.println("==============");
        myLinkedList.clear();
        myLinkedList.display();
//        myLinkedList.removeAllKey(2);
//        //myLinkedList.removeAllKey(2);
//        //myLinkedList.clear();
//        myLinkedList.display();
    }
}
